Skip to content

Conversation

@Ruslan207
Copy link
Contributor

@Ruslan207 Ruslan207 commented Aug 24, 2023

Description

If device has touchscreen, gridstack emulates mouse event from touch event + calls handler for pointer event. If user uses mouse, we don't need to manipulate with pointer event. So I check pointerType inside pointer events handlers.

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test)
  • Extended the README / documentation, if necessary

Issues fixed

#2413

@Ruslan207 Ruslan207 changed the title fix(drag): filter pointer events if it's already handled by mouse events handlers fix(drag): fix mouse drag on devices with touchscreen Aug 24, 2023
@adumesny adumesny merged commit 3fbca94 into gridstack:master Aug 25, 2023
@adumesny
Copy link
Member

that is great, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants